/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2024-02-21 00:49:25
 */

//   酒店-配置

import request from '@projectName/utils/request'

export function configIndex(data) {
  return request({
    url: '/diandi_place/place/config/index',
    method: 'get',
    params: data
  })
}

export function configView(id) {
  return request({
    url: `/diandi_place/place/config/view/${id}`,
    method: 'get'
  })
}

export function configBloc(id) {
  return request({
    url: `/diandi_place/place/config/bloc/${id}`,
    method: 'get'
  })
}

export function configCreate(data) {
  return request({
    url: '/diandi_place/place/config/create',
    method: 'post',
    data: data
  })
}

export function configBlocSet(data) {
  return request({
    url: `/diandi_place/place/config/blocSet`,
    method: 'post',
    data: data
  })
}

export function configUpdate(data) {
  return request({
    url: `/diandi_place/place/config/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function configDelete(id) {
  return request({
    url: `/diandi_place/place/config/delete/${id}`,
    method: 'delete'
  })
}

export function configInit(data) {
  return request({
    url: '/diandi_place/place/config/init',
    method: 'get',
    data: data
  })
}

